﻿<UserControl x:Class="CheckBoxProject.Page"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    FontFamily="Trebuchet MS" FontSize="11"
    Width="400" Height="300">
    <Grid x:Name="LayoutRoot" Background="White">
        <StackPanel>
            <CheckBox Checked="CheckBox_Checked" 
      Unchecked="CheckBox_Unchecked" 
      IsThreeState="True" Content="Test1">
            </CheckBox>
            <CheckBox Checked="CheckBox_Checked" 
      Unchecked="CheckBox_Unchecked" 
      IsThreeState="True">
                <CheckBox.Content>
                    <StackPanel Orientation="Horizontal">
                        <TextBlock Text="The Caption"></TextBlock>
                    <!-- Note that this will give an error as the source isn't set. Set it to any image, and uncomment to fix the bug-->
                    <!--<Image Source="..."/>-->
                        </StackPanel>
                </CheckBox.Content>
            </CheckBox>
        </StackPanel>

    </Grid>
</UserControl>
